<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\api\controller;

use app\common\model\ChannelWorkClass;
use app\common\model\KingCategory;
use app\common\model\KingDescribe;
use app\common\model\UserLevel;
use think\captcha\Captcha;
use think\Db;

/**
 * 公共基础接口控制器
 */
class ThirdPlan extends PlanBase
{

    /**
     * 登录接口
     */
    public function login()
    {
        return $this->apiReturn($this->logicThirdPlan->login($this->param));
    }

    /**
     *开奖结果接口
     */
    public function lottery_result()
    {
        return $this->apiReturn($this->logicThirdPlan->lottery_result($this->param));
    }

    /**
     *玩法接口
     */
    public function play_list()
    {
        return $this->apiReturn($this->logicThirdPlan->play_list($this->param));
    }

    /**
     * 获取余额
     */
    public function get_balance()
    {
        //dd($_FILES);
        $result = $this->logicThirdPlan->get_balance($this->param);

        return $this->apiReturn($result);
    }


    /**
     * 下注
     */
    public function  bets_lottery(){
        return $this->apiReturn($this->logicThirdPlan->bets_lottery($this->param));
    }


    /**
     * 单注奖金接口
     */
    public function  calculate_reward(){
        return $this->apiReturn($this->logicThirdPlan->calculate_reward($this->param));
    }




}
